<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
	body,div,input,label,h1,ul,li{margin: 0; padding: 0;}
	body, button, input, select, textarea {font: 12px "微软雅黑",arial,sans-serif;color:#2e2e2e;}
	table {border-collapse:collapse;border-spacing:0;}
	fieldset,img {border:0}
	address,caption,cite,code,dfn,strong,th,var{font-style:normal;font-weight:normal}
	ol,ul {list-style:none}
	caption,th {text-align:left}
	h1,h2,h3,h4,h5,h6 {font-size:100%;font-weight:normal}
	q:before,q:after {content:''}
	abbr,acronym { border:0}
	a{text-decoration:none;color:#999;outline:none;hide-focus:expression(this.hideFocus=true);}
	em{font-style:normal;}
	input,a,textarea{ outline:none;}
	a:hover{ text-decoration:underline;}
	html,body{width:100%;height:100%;}
	.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}
	.clearfix{display:inline-block}* html .clearfix{height:1%}.clearfix{display:block}
	.fl{float:left;_display:inline}
	.p20{ padding: 20px;}.pt15{padding-top: 15px;}.pl20{padding-left: 20px;}.pb10{padding-bottom: 10px;}
	.m20{margin-left: 10px;}.ml10{margin-left:10px;}.mt20{margin-top:20px;}
	.pr{position: relative;}
	.h1-title{ font-size: 24px; line-height: 50px; font-weight: normal;}
	.sdklist-info li{ clear: both; overflow: hidden; padding:10px 0; border:none;}
	label.lab-left{ width: 100px; line-height: 26px; font-size: 12px;}
	input[type="text"]{ line-height: 26px; width: 260px; border: 1px solid #ccc;}
	textarea{ width: 610px; resize:none; height: 120px; line-height: 24px; overflow: auto; border: 1px solid #ccc;}
	input[type="checkbox"]+label{ position: relative; top: -2px; padding-left: 5px;}
	.save-btn{ background: #298BB8; border-radius: 5px; font-size: 18px; padding: 10px 60px; color: #FFF;}
	.save-btn:hover{ background: #298BEF; text-decoration: none;}
	select{ line-height: 26px; height: 26px; width: 120px;}
	.input-file{ position: absolute; left:0; left: 0px;opacity:0; filter:alpha(opacity=0); line-height: 28px; height:28px; width:230px; cursor:pointer;}
	.browse-btn{line-height: 28px;padding: 0 15px; background: #808080; color: #FFF;text-align: center; height:28px;}
	.upload-btn{ line-height: 28px;padding: 0 15px; background: #49c39d; color: #FFF;text-align: center; border:0; cursor:pointer;height:28px;}
	a:hover{text-decoration: none;}
	input[type="text"].textfield{width: 174px;}
	fieldset{border:1px solid #a6c9e2;}
	.filedset-pad{padding:10px 5px 0;}
	.area01{margin:10px 0 0 300px;}
</style>

<script type="text/javascript">

</script>


</head>
<body>
<form id="update_info_form" method="post" class="form">
		<input type="hidden" name="id" value="${crawl.id}"/>
		<div class="filedset-pad">
		<fieldset>
    	<legend><font style="color:red">爬虫详细设置</font></legend>
		<ul class="sdklist-info">
			<li>
				<label class="fl lab-left">listUrl：</label> 
				<input type="text" style="width:632px" maxLength="100" class="fl" id="listUrl" name="listUrl" th:value="${crawl.listUrl}" readonly>
			</li>
			
			<li>
				<label class="fl lab-left">start：</label> 
				<input type="text" style="width:200px" maxLength="100" class="fl" id="start" name="start" th:value="${crawl.start}">
				<label class="fl lab-left" style="margin-left:132px;">end：</label> 
				<input type="text" style="width:200px" maxLength="100" class="fl" id="end" name="end" th:value="${crawl.end}">
			</li>
			
			<li>
				<label class="fl lab-left">infoUrlXpath：</label> 
				<input type="text" style="width:200px" maxLength="100" class="fl" id="infoUrlXpath" name="infoUrlXpath" th:value="${crawl.infoUrlXpath}" readonly>
				<label class="fl lab-left" style="margin-left:132px;">listUrlRegular：</label> 
				<input type="text" style="width:200px" maxLength="100" class="fl" id="listUrlRegular" name="listUrlRegular" th:value="${crawl.listUrlRegular}" readonly>
			</li>
			
			<li>
				<label class="fl lab-left">infoUrlPre：</label> 
				<input type="text" style="width:200px" maxLength="100" class="fl" id="infoUrlPre" name="infoUrlPre" th:value="${crawl.infoUrlPre}" readonly>
				<label class="fl lab-left" style="margin-left:132px;">infoUrlRegular：</label> 
				<input type="text" style="width:200px" maxLength="100" class="fl" id="infoUrlRegular" name="infoUrlRegular" th:value="${crawl.infoUrlRegular}" readonly>
			</li>
			
			<li>
				<label class="fl lab-left">infoContentXpath：</label> 
				<input type="text" style="width:200px" maxLength="100" class="fl" id="infoContentXpath" name="infoContentXpath" th:value="${crawl.infoContentXpath}" readonly>
				<label class="fl lab-left" style="margin-left:132px;">infoPicXpath：</label> 
				<input type="text" style="width:200px" maxLength="100" class="fl" id="infoPicXpath" name="infoPicXpath" th:value="${crawl.infoPicXpath}" readonly>
			</li>
			
			<li>
				<label class="fl lab-left">repeatFlagXpath：</label> 
				<input type="text" style="width:200px" maxLength="100" class="fl" id="repeatFlagXpath" name="repeatFlagXpath" th:value="${crawl.repeatFlagXpath}" readonly>
				<label class="fl lab-left" style="margin-left:132px;">repeatMaxTimes：</label> 
				<input type="text" style="width:200px" maxLength="100" class="fl" id="repeatMaxTimes" name="repeatMaxTimes" th:value="${crawl.repeatMaxTimes}">
			</li>
			
		</ul>
		</fieldset>
		</div>
		<div class="filedset-pad">
		<fieldset>
    	<legend><font style="color:red">爬虫定时策略</font></legend>
		<ul class="sdklist-info">
			<li>
				<label class="fl lab-left">周期：</label> 
				<select id="crawlTime" name="crawlTime" style="width:200px">
					<option value="1" th:selected = "${crawl.crawlTime == 1}">1</option>
					<option value="2" th:selected = "${crawl.crawlTime == 2}">2</option>
					<option value="3" th:selected = "${crawl.crawlTime == 3}">3</option>
					<option value="4" th:selected = "${crawl.crawlTime == 4}">4</option>
					<option value="5" th:selected = "${crawl.crawlTime == 5}">5</option>
					<option value="6" th:selected = "${crawl.crawlTime == 6}">6</option>
					
					<option value="7" th:selected = "${crawl.crawlTime == 7}">7</option>
                    <option value="8" th:selected = "${crawl.crawlTime == 8}">8</option>
                    <option value="9" th:selected = "${crawl.crawlTime == 9}">9</option>
                    <option value="10" th:selected = "${crawl.crawlTime == 10}">10</option>
                    <option value="11" th:selected = "${crawl.crawlTime == 11}">11</option>
                    <option value="12" th:selected = "${crawl.crawlTime == 12}">12</option>
                    
                    <option value="13" th:selected = "${crawl.crawlTime == 13}">13</option>
                    <option value="14" th:selected = "${crawl.crawlTime == 14}">14</option>
                    <option value="15" th:selected = "${crawl.crawlTime == 15}">15</option>
                    <option value="16" th:selected = "${crawl.crawlTime == 16}">16</option>
                    <option value="17" th:selected = "${crawl.crawlTime == 17}">17</option>
                    <option value="18" th:selected = "${crawl.crawlTime == 18}">18</option>
                    
                    <option value="19" th:selected = "${crawl.crawlTime == 19}">19</option>
                    <option value="20" th:selected = "${crawl.crawlTime == 20}">20</option>
                    <option value="21" th:selected = "${crawl.crawlTime == 21}">11</option>
                    <option value="22" th:selected = "${crawl.crawlTime == 22}">22</option>
				 
				</select>
				--
				<select style="width:200px">
					<option value="1">点</option>
				</select>
				<font style="color:red">(多个爬虫的爬取时间建议不要重叠,防止带宽不足抓取失败)</font>
			</li>
			
			<li>
				<label class="fl lab-left">休眠时间：</label> 
				<select name="sleepTime" id="sleepTime" style="width:200px">
				    <option value="100" th:selected="${crawl.sleepTime == 100}">100毫秒</option>
                    <option value="200" th:selected="${crawl.sleepTime == 200}">200毫秒</option>
                    <option value="300" th:selected="${crawl.sleepTime == 300}">300毫秒</option>
                    <option value="400" th:selected="${crawl.sleepTime == 400}">400毫秒</option>
                    <option value="500" th:selected="${crawl.sleepTime == 500}">500毫秒</option>
                    <option value="600" th:selected="${crawl.sleepTime == 600}">600毫秒</option>
                    <option value="700" th:selected="${crawl.sleepTime == 700}">700毫秒</option>
                    <option value="800" th:selected="${crawl.sleepTime == 800}">800毫秒</option>
                    <option value="900" th:selected="${crawl.sleepTime == 900}">900毫秒</option>
                    <option value="1000" th:selected="${crawl.sleepTime == 1000}">1000毫秒</option>
				</select>
				<font style="color:red">(不同网站抓取休眠时间不同，防止请求过快抓取失败)</font>
			</li>	
		</ul>
		</fieldset>
	</div>
</form>
</body>
</html>
